const http = require('http')

// 创建服务
const server  = http.createServer((request,response)=>{
    // request 响应报文
    // response 请求报文
    response.end(`<a href="https://baidu.com">'Hello http!'</a>`)
})

// 启动服务
server.listen(8989,()=>{
    console.log('启动服务: http://localhost:8989');
    (function(){console.log('测试');})()

})